package com.yyt.consumer.service;

import com.yyt.api.service.DubboDemoService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * @author yeyangtao
 * @since 2022/6/28 16:33
 */
@DubboService
@Service
@Slf4j
public class DemoServiceImpl implements DemoService {
    // (loadbalance = "RoundRobin")
    @DubboReference
    private DubboDemoService dubboDemoService;

    @Override
    public String demo(String str) {
        log.info("request provider");
        return dubboDemoService.demo(str);
    }
}
